<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="manage/layout :: common_header(~{::title})">
    <title>资讯管理-网站后台管理中心</title>
</head>
<body th:replace="manage/layout :: common_body(~{::div.layui-body})">
<div class="layui-body" style="padding:15px;">

    <div class="sp-wrapper">

        <fieldset class="layui-elem-field">
            <legend>按条件搜索</legend>
            <div class="layui-field-box">

                    <div class="layui-form-item">

                        <div class="layui-inline">
                            <a class="layui-btn layui-btn-primary" th:href="@{/manage/page_add}">添加页面</a>
                        </div>
                    </div>

            </div>
        </fieldset>


            <table class="layui-table dd-table" lay-even lay-skin="row">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>名称</th>
                    <th>中文标题</th>
                    <th>英文标题</th>

                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td class="center" th:text="${item.id}"></td>
                    <td class="center" th:text="${item.name}"></td>
                    <td class="center" th:text="${item.titleCn}"></td>
                    <td class="center" th:text="${item.titleEn}"></td>

                    <td class="center">
                        <a class="layui-btn layui-btn-primary layui-btn-small"
                           th:href="@{/manage/page_edit(id=${item.getId()})}"><i class="layui-icon"></i>修改</a>
                    </td>
                </tr>
                </tbody>
            </table>

        <div class="layui-box layui-laypage layui-laypage-default">

        </div>
        <div class="layui-box layui-laypage layui-laypage-default pageBox">

        </div>
        <script type="text/javascript">
            //JavaScript代码区域
            layui.use(['jquery','form','layer'], function () {
                var $$ = layui.jquery;
                var form = layui.form;
                var layer = layui.layer;
                $$(function(){

                })
            });
        </script>

    </div>
</div>
</body>
<html>
